import mpRequest from "./request"

const getBannerApi = (data) =>{
	return mpRequest.request({url:"/v1/getBanner", data})
}
const oneClickLoginApi = (data) =>{
	return mpRequest.request({url:'/v1/miniLoginV2', data})
}
const getUserInfoApi = () =>{
	return mpRequest.request({url:"/v1/user/userInfo"})
}
const getMySelfApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/myShelf", data})
}
const getGradeListApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/gradeList", data})
}
const getCourseListApi = () =>{
	return mpRequest.request({url:"/v2/pep/courseList"})
}
const getYunDuoBookListApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/booksListV2", data})
}
const getGradeBookListApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/booksList", data})
}
const addYunDuoBookApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/addShelf", data })
}
const getPayBookInfoApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/getMemberCard", data})
}
const buyBookApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/buy", data})
}
const removeBookFromMySelfApi = (data) =>{
	return mpRequest.request({url:"/v2/pep/delShelf", data})
}
const getOssApi = () =>{
	return mpRequest.request({url:"/v1/getOssSecurityMini"})
}
const updateAvarApi = (data) =>{
	return mpRequest.request({url:"/v1/user/updateAvar", data})
}
const updateUserInfoApi = (data) =>{
	return mpRequest.request({url:"/v1/user/updateUserInfo", data})
}
const getMyOrderApi = () =>{
	return mpRequest.request({url:"/v2/pep/order"})
}
const logOutApi = (data) =>{
	return mpRequest.request({url:"/v1/loginOut", data})
}
const logOffApi = () =>{
	return mpRequest.request({url:"/v1/logOff"})
}
const getYunDuoToken = () =>{
	return mpRequest.request({url:"/v2/pep/getToken"})
}
const feedbackApi = (data) =>{
	return mpRequest.request({url:"/v1/addFeedBack", data})
}
const outherLoginApi = (data) =>{
	return mpRequest.request({url:"/v1/userLoginMini", data})
}

const getMpVersionApi = (data) =>{
	return mpRequest.request({url:"/v1/iosExamineStuConfig", data})
}
const bindPhoneApi = (data) =>{
	return mpRequest.request({url:"/v1/setPhone", data})
}
const getOssSecurity = (data) =>{
	return mpRequest.request({url:"/v1/goOssSecurity", data})
}


export {
	oneClickLoginApi,
	getUserInfoApi,
	getBannerApi,
	getMySelfApi,
	getYunDuoToken,
	getGradeListApi,
	getCourseListApi,
	getYunDuoBookListApi,
	getGradeBookListApi,
	addYunDuoBookApi,
	getPayBookInfoApi,
	buyBookApi,
	removeBookFromMySelfApi,
	getOssApi, 
	updateAvarApi, 
	updateUserInfoApi,
	getMyOrderApi,
	logOffApi,
	logOutApi,
	feedbackApi,
	outherLoginApi,
	getMpVersionApi,
	bindPhoneApi,
	getOssSecurity,
}